#define VECTOR_IMPLEMENTATION
#include "vector.hol.h"
#include <stdint.h>

// 整数打印回调函数
void print_int(void* data) {
    printf("%d", *(int*)data);
}

int main() {
    vector_t vec;
    vec_new(&vec);

    int a = 1, b = 2, c = 3;
    vec_push_back(&vec, &a);
    vec_push_back(&vec, &b);
    vec_push_back(&vec, &c);

    // 用蓝色打印向量内容
    vec_print(&vec, print_int, COLOR_BLUE);

    vec_free(&vec);
    return 0;
}
